/*
    Carracci Systems - Carracci Server (openbam project)
    Copyright (C) 2007  Carracci Systems

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

package org.openbam.core.expr;

/**
 * Used by AggregateExpression instances to store values that were
 * evaluated in the Operating Window.
 * @author inder
 *
 */
public class EvaluatedValue {
	/**
	 * The value of evaluating the expression on the event.
	 * For e.g. when doing average(cpu_utilization), this is the
	 * value of cpu_utilization as evaluated for a particular event. 
	 */
	Object nestedValue;
	
	/**
	 * The value of the applying the aggregated expression in the operating
	 * window on the evaluated value. 
	 * For e.g. when doing average(cpu_utilization), this is the average value
	 * of cpu_utilization at the time a particular event occurred.
	 */
	Object aggregatedValue;
	
	/**
	 * The eventTime for this evaluation.
	 */
	long eventTime;
	
}
